﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Proxy
{
    public class ProxyImage : Image
    {
        string name;
        RealImage realImage;
        public ProxyImage(string name)
        {
            this.name = name;
        }
        public void display()
        {
            if (this.realImage == null)
            {
                this.realImage = new RealImage(this.name);
            }
            this.realImage.display();
        }
    }
}
